package cn.xhjava.crm.workbench.service;

import cn.xhjava.crm.workbench.domain.Contacts;
import cn.xhjava.crm.workbench.domain.DateDataMapVO;
import cn.xhjava.crm.workbench.domain.FunnelVO;

import java.util.List;
import java.util.Map;

/**
 * @author Xiahu
 * @create 2023/7/12 0012
 */
public interface ContactsService {
    List<Contacts> selectForPage(Map<String, Object> map) throws Exception;

    int selectCountForPage(Map<String, Object> map) throws Exception;

    int add(Contacts contacts) throws Exception;

    Contacts selectById(String id) throws Exception;

    int update(Contacts contacts) throws Exception;

    int delete(String[] id) throws Exception;

    Contacts selectDetailById(String id) throws Exception;

    List<Contacts> selectLikeName(String name) throws Exception;

    List<Contacts> selectContactsListByCustomerId(String id) throws Exception;


    int addByCustomerId(Contacts contacts) throws Exception;

    DateDataMapVO queryContactsCountGroupByCreateTime() throws Exception;

    List<FunnelVO> queryContactsCountGroupBySource() throws Exception;
}
